<script setup>

import KeepAlive1 from "@components/keepalive/KeepAlive1.vue";
import KeepAlive2 from "@components/keepalive/KeepAlive2.vue";
import MyAnimejs from "@/animejses/MyAnimejs.vue";

const current = shallowRef(KeepAlive1);
</script >

<template >
  <div class="demo">
    <label><input type="radio" v-model="current" :value="KeepAlive1" /> A</label>
    <label><input type="radio" v-model="current" :value="KeepAlive2" /> B</label>
    <KeepAlive>
      <component :is="current"></component>
    </KeepAlive>
  </div>
  
  <MyAnimejs></MyAnimejs>
</template >

<style scoped >

</style >